package com.board.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

//平台查询订单
@Data
@ApiModel(value = "平台查询订单参数对象")
public class PlatformFindForm {
    @ApiModelProperty("查询的订单编号")
    private String orderNum;
    @ApiModelProperty("查询的订单状态")
    private Integer orderState;
    @ApiModelProperty("查询的食堂名字")
    private String canteenName;
    @ApiModelProperty("查询的商店名字")
    private String storeName;
    @ApiModelProperty("查询的订单类型")
    @NotNull(message = "订单类型不能为空")
    private Integer orderType;
    @ApiModelProperty("页码")
    @Min(value = 1,message = "页码不能小于1")
    private Integer pageNum;
    @ApiModelProperty("每页条数")
    @Min(value = 1,message = "每页条数不能小于1")
    @Max(value = 100,message = "每页条数不能大于100")
    private Integer pageSize;
}
